<template>
  <div>
    <el-row>
      <el-col :span="8" :offset="8">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="推荐类别">
            <el-select v-model="form.region" placeholder="请选择类别" style="width:450px">
              <el-option label="类别一" value="shanghai"></el-option>
              <el-option label="类别二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="作品链接">
            <el-input
              placeholder="https://"
              v-model="form.link"
              maxlength="200"
              clearable>
            </el-input>
          </el-form-item>
          <el-form-item label="首发平台">
            <el-input
              placeholder="请输入首发平台具体名称"
              v-model="form.platform"
              maxlength="20"
              clearable>
            </el-input>
          </el-form-item>
          <el-form-item label="作品简介">
            <el-input
              type="textarea"
              placeholder="请输入作品简介(不超过50字)"
              v-model="form.intro"
              maxlength="50"
              show-word-limit
            >
            </el-input>
          </el-form-item>
          <el-form-item label="社会效果">
            <el-input
              type="textarea"
              placeholder="请输入社会效果(不超过50字)"
              v-model="form.effect"
              maxlength="50"
              show-word-limit
              clearable>
            </el-input>
          </el-form-item>
          <br>
          <br>
          <!--<el-upload-->
            <!--class="upload-demo"-->
            <!--action="https://jsonplaceholder.typicode.com/posts/"-->
            <!--:on-preview="handlePreview"-->
            <!--:on-remove="handleRemove"-->
            <!--:before-remove="beforeRemove"-->
            <!--multiple-->
            <!--:limit="1"-->
            <!--:on-exceed="handleExceed"-->
            <!--:file-list="fileList">-->
            <!--<el-button size="small" type="primary">点击上传</el-button>-->
            <!--<div slot="tip" class="el-upload__tip">限制上传1个文件，格式为</div>-->
          <!--</el-upload>-->

          <el-form-item>
            <el-button type="primary" @click="onSubmit">下一步</el-button>
            <el-button>取消</el-button>
          </el-form-item>
        </el-form>

      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'AnimeVedio',
  data () {
    return {
      form: {
        region: '',
        link: '',
        platform: '',
        intro: '',
        effect: ''
      },
      pstatus: 1
    }
  },

  methods: {
    onSubmit: function () {
      this.$axios.post('/animeVedio', {id: 15, recomType: this.form.region, platform: this.form.platform, pstatus: this.pstatus})
      // console.info(this.$axios.get('api/animeVedio', {params: {id: 13}}))
    }
  }
}
</script>

<style scoped>

</style>
